package net.yunzhanyi.client.domain.dto;

import org.apache.commons.lang3.time.DateFormatUtils;

/**
 * @author bestct
 * @date 2022/10/5
 * @type 类
 */
public class CollectionDto {

    /**
     * id
     */
    private Long id;

    /**
     * 收藏类型
     */
    private Integer collectionType;

    /**
     * 资源id
     */
    private Long resId;


    private String resName;

    /**
     * 收藏时间
     */
    private String collectionTime;

    /**
     * 收藏类型
     */


    public CollectionDto() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCollectionType() {
        return collectionType;
    }

    public void setCollectionType(Integer collectionType) {
        this.collectionType = collectionType;
    }

    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(Long collectionTime) {
        this.collectionTime =  DateFormatUtils.format(collectionTime, "yyyy-MM-dd");
    }

}
